// import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
import { createRouter, createWebHistory } from 'vue-router'

//   指定路由硅脂
const routes = [
  {
    path: "/",
    name: "main",
    component: () => import("@/views/Main.vue"),
    redirect: "/home",
    children: [
    ],
  }, {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login.vue"),
  }

];

const router = createRouter({
  // 设置路由的模式
  history: createWebHistory(),
  routes
})

export default router;